<?php get_header(); ?>
	<section class="main">
		<?php get_sidebar(); ?>
		<section class="main-content">
			<section class="discrumble">
				<?php
					$walker = '';
					if(get_search_query() == " "){
						$walker .= __('Search keyword : All ;','building');
					}else{
						$walker .= __('Search keyword : "','building') .get_search_query() .' ";';
					}if(isset($_GET['location']) and $_GET['location'] != ""){
						$walker .= __(' Location : ','building') . $_GET['location'];
					}if(isset($_GET['author']) and $_GET['author'] != ""){
						$walker .= __('; Author : ','building') . get_userdata($_GET['location'])->user_nicename;
					}
				?>
				<?php if(is_search()):?>
					<a class="home" href="<?php echo home_url();?>"><?php bloginfo('name')?></a>
					>>
					<?php echo $walker;?>					
				<?php else:?>
					<?php if(function_exists('bcn_display')){ bcn_display();}?>
				<?php endif;?>
			</section>
			<section class="col-main">
				<?php if (have_posts()) : ?>
	
					<h2>Search Results</h2>

					<?php include (TEMPLATEPATH . '/inc/nav.php' ); ?>

					<?php while (have_posts()) : the_post(); ?>

						<div <?php post_class() ?> id="post-<?php the_ID(); ?>">

							<h2><?php the_title(); ?></h2>

							<?php include (TEMPLATEPATH . '/inc/meta.php' ); ?>

							<div class="entry">
								<?php the_excerpt(); ?>
							</div>

						</div>

					<?php endwhile; ?>

					<?php include (TEMPLATEPATH . '/inc/nav.php' ); ?>

				<?php else : ?>

					<h2>No posts found.</h2>

				<?php endif; ?>
			</section>
		</section>
	</section>

<?php get_footer(); ?>